package com.tj.demo.util.cases;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: ToolBean
 * @Author: TanJun
 * @Date: 2021/5/20 23:09
 * @Description:
 * @Version: 1.0
 * @Copyright:
 *
 * 测试案例用户实体类
 */
@Data
public class UserBean implements Serializable {
    /***
     * 标识id 名称 性别 年龄 部门 薪资
     *
     * **/
    private Integer id;
    private String name;
    private String gender;
    private Integer age;
    private String depart;
    private BigDecimal salary;

    public UserBean(Integer id, String name, String gender, Integer age, String depart, BigDecimal salary) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.depart = depart;
        this.salary = salary;
    }

    public static List<List<UserBean>> listInit(){
        List<List<UserBean>> resultList = new ArrayList<>();
        //数据准备
        List<UserBean> list = new ArrayList<>();
        list.add(new UserBean(1, "pan_junbiao的博客_01", "男", 32, "研发部", BigDecimal.valueOf(1)));
        list.add(new UserBean(2, "pan_junbiao的博客_02", "男", 30, "财务部", BigDecimal.valueOf(1)));
        list.add(new UserBean(3, "pan_junbiao的博客_03", "女", 20, "人事部", BigDecimal.valueOf(1)));
        list.add(new UserBean(4, "pan_junbiao的博客_04", "男", 38, "研发部", BigDecimal.valueOf(1)));
        list.add(new UserBean(5, "pan_junbiao的博客_05", "女", 25, "财务部", BigDecimal.valueOf(16)));

        List<UserBean> listNew = new ArrayList<>();
        listNew.add(new UserBean(1, "pan_junbiao的博客_01", "男", 32, "研发部", BigDecimal.valueOf(1600)));
        listNew.add(new UserBean(2, "pan_junbiao的博客_02", "男", 30, "财务部", BigDecimal.valueOf(1800)));
        listNew.add(new UserBean(6, "pan_junbiao的博客_06", "女", 20, "人事部", BigDecimal.valueOf(1700)));

        resultList.add(list);
        resultList.add(listNew);
        return resultList;
    }
}
